Handle SIGPIPE signals