Trap SIGINT and SIGPIPE so that Control-C and head/tail/less don't print exceptions