Hello, can autoit3 scripts recognize, when they get a signal to terminate, either by user action, another program or a windows shutdown? I'd like to be able to do cleanup actions (write a final line to log file with reason, date+time of script termination) or to interrupt a triggered windows shutdown ("do you really want to shutdown your windows?") Thanks for any suggestions, Rudi.