Fix for urllib2 not throwing errors on bad connection (bug 878368)