code: def close_session(self):
          
          if not self._session.closed:
              if self._session._connector_owner:
                  self._session._connector.close()
              self._session._connector = None
docs: Close current session.