I know that geventserver is made out of gevent.pywsgi, somehow, I am still not sure how the server closes a ???thread???, thus everything including the websocket and other stuff get cleaned up when a client closes purposely or unpurposely an established connection.