Add connection error handler
fix typo
Merge pull request #3 from quark-tekliner/master

Connection error handling