We use the Remote Desktop role in Server 2008 Enterprise SP2 to give users access to a 32-bit application. It is configured to auto-start the application via the "Start the following program at logon:" property for the user. When the user exits from the application, it should automatically log them off the server.
However, it simply hangs with a blank desktop in the RDP session. If we run task manager in the session, we can see that splwow64.exe is still running (along with the other standard RDP session applications.) If we terminate splwow64.exe then the session logs off.
How can we force splwow64.exe to terminate with our application so the session will log off?