add trap for ctl-c, avoid stack trace on quit