code: private void cleanup() {
      if (operation instanceof Command && log.isOpen()) {
        try {
          log.release(index);
        } catch (IllegalStateException e) {
        }
      }
  
      session.release();
  
      index = 0;
      session = null;
      instant = null;
      operation = null;
  
      pool.release(this);
    }
docs: Cleans up the commit.