Merge pull request #29 from klange/master

Reconnect (if safe to do so) between calls to poll_connections_until_stopped