Exit app if no connection.