code: @Override
      public void close() {
          val bk = this.bookKeeper.getAndSet(null);
          if (bk != null) {
              try {
                  bk.close();
              } catch (Exception ex) {
                  log.error("Unable to close BookKeeper client.", ex);
              }
          }
      }
docs: region AutoCloseable Implementation