Implemented system to safely stop the proxy without dropping the current request being handled.