We have a RDS farm (Win 2008 R2) and the users need to use a third party application (Unify OpenScape Contact Center) for call center purposes. It logs on the specific user to specific phones. When the users closes the application manually, basically closing the window, the app "does what it have to do" and automatically logs off the user from the phone.
The problem happens when the user leaves the app running and logs off from their sessions (basically Start->logoff), it's like Windows terminates (kill) the process, and the users keeps logged to the phone, then the next day some manager has to force a logoff and so on, generating problems.
Is it a default behavior on Windows logoff? Is there a way to configure it to maybe "gracefully" close the applications (send WM_CLOSE)?
I could make a script to generate a custom "logoff" shortcut to users and disable the logoff buttom, then try to gracefully close the app before logoff, but still sounds like a weird workaround to me. Also, doesn't solve the problem for inactive/disconnected sessions being ended by Windows after timeout.