Suppress SIGPIPE events when writing to sockets