SCTX-1334: Ensure that hard_shutdown and hard_reboot cancels clean_shutdown and clean_reboot respectively.