docs: def close(self):
          """
          Closes the cursor. The cursor is unusable from this point.
          """
          if self._session is not None:
              try:
                  self._session.close()
                  self._session = None
              except socket.error as e:
                  if e.errno != errno.ECONNRESET:
                      raise