in reply to closing window and running sub-routine
-command => sub{ ... } -command => [ \&subname, args ... ] [download]