loosen URLError checking, catch connection resets, etc.
Merge pull request #13 from rweait/url-errors

loosen URLError checking, catch connection resets, etc.