P/Invoke to get the window handle of the application to close (e.g. using
FindWindow). Than P/Invoke PostMessage to send that window a WM_CLOSE
message.
Thinking about it, it might also be possible to P/Invoke DestroyWindow,
although I have never tried that myself.