code: @Override
      public void close() {
          if (!this.closed.getAndSet(true)) {
              closeIndices(null, false); // This will close all registered indices, without cleaning the cache.
              this.cache.close();
              log.info("{}: Closed.", this.traceObjectId);
          }
      }
docs: region AutoCloseable Implementation