Code Snippets Similar to "Mock Shutdown":