XClose is a simple tool which can be used to
either list, or close, all the current windows
within your current X session which match a
particular pattern. It can be useful for closing
particular windows programmatically, or for
killing all instances of a particular program.