catch connection error (bug 884855)
Merge pull request #300 from andymckay/884855

catch connection error (bug 884855)