Fixed up rebooting and shutdown