docs: @Override
      public void close() {
          if (isClosed) {
              return;
          }
  
          TransactionOLTP localTx = localOLTPTransactionContainer.get();
          if (localTx != null) {
              localTx.close(ErrorMessage.SESSION_CLOSED.getMessage(keyspace()));
              localOLTPTransactionContainer.set(null);
          }
  
          if (this.onClose != null) {
              this.onClose.accept(this);
          }
  
          isClosed = true;
      }