Handle SIGPIPE