That looks like what I may be looking for; however, I'm using Nomads, so I don't know how I would do an obtain (or capture the CTL) within this framework. As I said I tried to capture the values in User Defined CTL Values screen in Nomads and set the action to End, but nothing happens when I log out. Windows also provides a prompt saying that some tasks are still running.
I also wonder if doing my own obtain would interfere with anything Nomads is doing.
I feel like we are close to figuring this out, so thanks for your continued input.