Connection handling

Trying to auto reconnect if server configuration changes