private void fireClientDisconnectEvent(DisconnectEvent evt) {
    connected = false;
    Object[] listeners = disconnectEventListenerList.getListenerList();
    for (int i=0; i<listeners.length; i+=2) {
      if (listeners[i]==DisconnectListener.class) {
        ((DisconnectListener)listeners[i+1]).OnDisconnectEvent(evt);
      }
    }
  }