Implemented reboot and shutdown