Handle expired zookeeper sessions gracefully