More robust connection: reconnect when server is lost