optimize Ctrl+C notification mechanism