Allow multiple retries of failed connections

[Fixes #77483672]
Merge pull request #5 from VerticalResponse/nick/retry_network_errors

Nick/retry network errors