code: def on_disconnect(client):
      
      print "-- Lost connection to %s" % client.addrport()
      CLIENT_LIST.remove(client)
      broadcast('%s leaves the conversation.\n' % client.addrport() )
docs: Sample on_disconnect function.
      Handles lost connections.