Added fix for proxy connection refused error crashing the app.