fix SIGPIPE cause process exit