I upgraded from core 13.3 to scale 24.04, and found out that when my cron job calls shut down, the machine immediately reboot after shutting down. It worked perfectly fine in 13.3.
The command I use is midclt call system.shutdown
Nothing have changed in my MB BIOS.