Make multiple connection attempts. Fail after 5.

I'd like to make connection attempts, and the timing between each,
configurable via yml settings. Eventually.