Implemented the Restart and ShutDown methods