code: def jsonRpcLogout(self, remote, session):
          
          logout = False
          try:
              params = {"_session_id_": session}
              response = self._rpcfunctions.jsonRpcPost(
                  self.remotes[remote]['ip'], self.remotes[remote].get('jsonport', DEFAULT_JSONPORT), "Session.logout", params)
              if response['error'] is None and response['result']:
                  logout = response['result']
          except Exception as err:
              LOG.debug(
                  "ServerThread.jsonRpcLogout: Exception while logging in via JSON-RPC: %s" % str(err))
          return logout
docs: Logout of CCU