Add internal APIs for power off and reboot (#2475)