Handling retry

Checking for connect in progress is the right thing instead of checking
for connect.