handle proxy request errors a bit better