just some retry logic on connect failures