Better error handling on early failure

If the request fails before context type is established, still handle
the error so that it can be debugged.