Made the UI not crash when we can't connect