reconnect after disconnecting

This closes #104.