Add active retries on connection failure.

Currently retries indefinitely.  This may be a bug.