code: public void close() {
      try {
        if (conn != null) {
          conn.close();
        }
      } catch (IOException ignored) { }
  
      if (zkClient != null) {
        zkClient.stopAndWait();
      }
    }
docs: Frees up the underlying resources common to all clients.