Fixed som bugs

* Now you can reconnect om the client.