Fixing Error Handling When Not Using cURL

https://sailthru.fogbugz.com/default.asp?15061