added zookeeper connection retry and reconnection