catching zookeeper exceptions