/// <summary> /// Call this function in order to close the ZK connection /// </summary> public void Dispose() { zk.Delete(id); // Wait for all events to finish, kick the bucket when they are done Thread.Sleep(1000); // I can haz programming zk.Disconnect(); }