Hi ZooKeepers, I have just created this and issue to improve client-side "close"
https://issues.apache.org/jira/browse/ZOOKEEPER-2697 Handle graceful stop of ZookKeeper client If the idea is acceptable for you I can write a patch and file a PR. Thanks -- Enrico