wait until client connect to zookeeper instance