check connection state for zookeeper

check for zk connection state, cause for hang up