One suggestion/remark though:
What about polygamy? Or if your run Windows Msg and MSN Msg at the same time and both programs need the same program to keep running?
Maybe adding an option where you can enable/disable the closing of programs if another application (another messenger) is still running...
If you know what I mean