add some error catching around zookeeper connections