Unraid's real event name is unmounting_disks, not disks_unmounting — the mismatch meant emhttp_event never found this hook, so array_stopping.sh never ran on real array stop.
Unraid's real event name is unmounting_disks, not disks_unmounting — the mismatch meant emhttp_event never found this hook, so array_stopping.sh never ran on real array stop.