Protect against SIG_PIPE