Client continuously tries to connect maxTries times