http://qs321.pair.com?node_id=1221597


in reply to Window Close / Process Termination Handler on Windows

See The implementation of SIGHUP in Win32 Perl, it appears closing the cmd.exe/console window is killing perl process , so no signal catching is possible