how to handle zk conn loss and session expiration