These changes ensure win_reboot can survive an already scheduled shutdown by pre-empting it. This fixes #19982