add error message on connection lost
Merge pull request #17 from gsaunier/master

add error message on connection lost