Exit immediately when a script is killed