handles exceptions from new york times/youtube (urllib2.HTTPError, urllib2.URLError), should work for other stuff