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