Treat EPIPE errors (which used to be SIGPIPE) as the same as ECONNRESET.