code: @Override
      public boolean close() throws TTIOException {
          mCommitInProgress.shutdown();
          mDelegate.mSession.waitForRunningCommit();
          if (!mDelegate.isClosed()) {
              mDelegate.close();
  
              try {
                  // Try to close the log.
                  // It may already be closed if a commit
                  // was the last operation.
                  mLog.close();
                  mBackendWriter.close();
              } catch (IllegalStateException e) {
                  // Do nothing
              }
              mDelegate.mSession.deregisterBucketTrx(this);
              return true;
          } else {
              return false;
          }
      }
docs: {@inheritDoc}