With a Mac (at least with OS X, perhaps Anna knows if it works in earlier versions) you can use command-alt-escape to open a Force quit window that lets you force an incapacitated program to quit. It's actually nicer than the Windows equivalent because you don't see any extra background programs. I guess Apple has made a superior operating system in which background stuff won't malfunction.