Custom changes to help us get access to the raw request/response
Also prevents a crash when a proxied server goes down.