Fail more gracefully when you can't connect
Merge pull request #4 from tmc/master

Fail more gracefully when you can't connect