in reply to Re: Tk onExit
in thread Tk onExit

An END { } block will be executed after the Tk window is destroyed, so this won't help the original questioner.