Implemented myShutdown().