@Override public void destroy() { if (zk != null) { zk.unregister(this); } zk = null; super.destroy(); }