Need a close method to properly clean up the resources by zookeeper