Add ErrShutdownMachine error
Clear reboot flag and state on startup