Marcus, The mod to GUI.xs does in fact work.
Ive tested on, (or had it tested) Win95a/b and win98 works O.K windows will not shutdown untill shutdown sub has finished. WinNT40 and WIN2K non console app works O.K (e.g. run with wperl.exe) console apps (run with perl.exe) do not. NT has a different messages CTRL_SHUTDOWN_EVENT or CTRL_LOGOFF_EVENT-- AFAIK the console will die before WM_ messages occur... JohnR