code: static void shutdownZkClient(AvatarZooKeeperClient zk) {
      if (zk != null) {
        try {
          zk.shutdown();
        } catch (InterruptedException e) {
          LOG.error("Error shutting down ZooKeeper client", e);
        }
      }
    }
docs: helpers