Error handling when the connection fails. #6
Merge pull request #7 from mathieuhays/master

Error handling when the connection fails. #6