capture SIGINT/SIGHUP