Connections can fail to connect, update their attempt counter accordingly
Merge pull request #12 from dlecocq/dan/reconnection

Connections can fail to connect, update their attempt counter accordingly