[NRY] retry socket on failed connect call

Sometimes when we initialize connections, the socket is bad. Retry a few times before failure.