code: private void onConnectionClosed()
     {
        ConnectionEvent evt = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED);
        for (ConnectionEventListener listener : listeners)
        {
           try
           {
              listener.connectionClosed(evt);
           }
           catch (Exception e1)
           {
              LOG.warn("An error occurs while notifying the listener " + listener, e1);
           }
        }
     }
docs: Broadcasts the connection closed event