Separate out connect_socket_with_backoff and connect_with_backoff