title: Capturing event of client disconnecting! - Gevent/Python
body: <p><strong>I'm using long polling for a chat with gevent.</strong> I'm using Event.wait() when waiting for new messages to be posted on the chat.</p>
  
  <hr>
  
  <p>I would like to <strong>handle the occasion a client disconnects</strong> with some functionality:</p>
  
  <p>e.g. Return <strong>"client has disconnected"</strong> as a message for other chat users</p>
  
  <hr>
  
  <p>Is this possible? =)</p>