stick this line in your script. if you already have an END block then put this one above it (see
perldoc perlmod as regards LIFOness of END block processing). this is tested with perl2exe v5.03 for Win32 but should work for earlier versions too. I don't know what this'll do for the likes of Win32::GUI scripts but it could fix the crashing bug that I vaguely remember seeing when perl2exe tries to display a GUI evaluation message when the app is closed.