Add reconnect strategy

Fixes #1