Fix reconnecting
Merge pull request #7 from Gabscap/fix1

Fix reconnecting to servers