code: ServerSessionContext unregisterSession(long sessionId) {
      ServerSessionContext session = sessions.remove(sessionId);
      if (session != null) {
        clients.remove(session.client(), session);
        connections.remove(session.client(), session.getConnection());
      }
      return session;
    }
docs: Unregisters a session.