Add an error listener to prevent socket hang up and similar errors leading to thrown exceptions.
Merge pull request #4 from bazaarvoice/master

Add an error listener to prevent socket hang up and similar errors leading to thrown exceptions.