handle ECONNRESET client socket error, so client apps don't crashes

this issue appeared in many other dependent npm modules
fixes #12