catch SIGPIPE