in reply to setting the exit code for Perl/Tk Apps?
What's the error you get when you call exit directly?