Make sure the settings are loaded before trying to reconnect.