Safe Ctrl-C action