code: private void fireConnectionClosed() {
          assertUnlocked();
  
          BOSHClientConnEvent event = null;
          for (BOSHClientConnListener listener : connListeners) {
              if (event == null) {
                  event = BOSHClientConnEvent.createConnectionClosedEvent(this);
              }
              try {
                  listener.connectionEvent(event);
              } catch (Exception ex) {
                  LOG.log(Level.WARNING, UNHANDLED, ex);
              }
          }
      }
docs: Notifies all connection listeners that the session has been
  terminated normally.