More helpful exception on connection errors (fixes #11)

This should fix #11.

I didn't touch any PEP8 related stuff, that's all fixed on my other pull request.

A test could easily be added, but we need to agree on a testing system first.