code: public void close() {
      if (zooKeeper != null) {
        try {
          zooKeeper.close();
        } catch (InterruptedException e) {
          LOG.error("Interrupt when closing zookeeper connection", e);
        }
      }
    }
docs: Close the ZooKeeper object.