Added listener for connection error, such that the user can handle it.
Merge pull request #151 from vliedel/master

Added listener for connection error, such that the user can handle it.