Fix for issue #45 makes it impossible to re-connect after a networking issue or peer close

Make client reusable after passive disconnection due to networking issues or peer close