Now that I’m no longer running Citrix XenApp, I had to research how to tell the Terminal Server service to ignore a process that was stopping a process being killed when the RemoteApp executable had quit.
In XenApp you add the exe name of the “rogue” process(es) to a registry string value called LogOffCheckSysModules, but this key is Citrix-specific and thus won’t have any effect if you’re just using Remote Desktop Session Host.
It turns out (as I’d hoped) that there is an equivalent way to do this. You add a DWORD named with the process you want Windows to ignore to the following registry key:
and set the value to zero. There will already be several processes listed in there by default.