Added simple error handling for proxy errors