add shutdown and reboot sub procedure