Fixed Crashes when app cannot connect to a server