In Ubuntu:
To find out what application a window belongs to: Type xwininfo in the console, then click on the window.
To kill a window, type xkill in the console, then click on a window to kill it.
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.