Implement connection retries to limit connection attempts.
Do not attempt to connect to ZooKeeper indefinetly in case server is unreachable.)