Fixes Invoke-Reboot from a nested package and bubbles up the reboot signal
restrict the nested reboots only if reboots are ok