Fix poweroff/reboot