better connection error handling
method to_s defined for custom error classes. Allows to propagate exception messages up
Merge pull request #9 from porbas/master

better connection error handling