Updated to shut down server