Handle ECONNRESET returned from recv(2), fixes #6.