Bug 960926 - Handle EPIPE gracefully with exit