code: @Override
      public void close() {
          if (!this.closed) {
              try {
                  this.entries.releaseLock(this.clientId);
              } catch (DataLogWriterNotPrimaryException ex) {
                  // Nothing. Just let it go.
              }
  
              this.closed = true;
          }
      }
docs: region DurableDataLog Implementation