Handle SIGPIPE / EPIPE.