Graceful Logoff from a Published Application Renders the Session in Active State
I noticed that this “old” issue is still if you run XenApp 6.
http://support.citrix.com/article/CTX891671
Symptoms
Graceful logoffs from a published application launched in a seamless, fixed window, or as an RDP Initial Program, might result in the session not closing and the user being logged off. Sessions are able to be reset or exited correctly by manually resetting them, or by terminating remnant user processes in Terminal Services Administration, the Management Console, or Access Suite Console.