Set socket options to ignore SIGPIPE