Fix poweroff/halt/reboot commands not returning.