I came across this question today when I meet up customer today .
Customer that in in Software Development department wanted their engineering application will not die forever even they shutdown the PC and back home.
Here is the solution that you might consider if you want your Remote app session will not disconnected forever or within long hours or Days
Session Time Limits policy settings for Terminal Services sessions to set the time limit for RemoteApp sessions.
in Windows Server 2008 have one new Policy Setting that allows for the administrator to set the time delay for the logoff from a disconnected RemoteApp session. There only things to take care this might overwhelming server resources by permitting these “no remote program running” RemoteApp sessions to remain in a disconnected state.
To locate the session time limit policy settings, follow these steps:
1. Log on to the terminal server as an administrator.
2. Start the Local Group Policy Editor. To do this, click Start, click Run, type gpedit.msc, and then click OK.
3. Locate the following node:
Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Session Time Limits
Note: The policy settings are also located under User Configuration\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Session Time Limits
4. The new policy—Set time limit for logoff of RemoteApp sessions—is shown in the following figure:
How do I enable the time limit for logoff delay?
To enable the “Set time limit for logoff of RemoteApp sessions” policy setting, follow these steps:
1. In the right pane of the Local Group Policy Editor, double-click Set time limit for logoff of RemoteApp sessions.
2. Click Enabled.
3. In the RemoteApp session logoff delay list, select the desired time for logoff delay, and then click OK.
4. At a command prompt, type gpupdate, and then press ENTER to force the policy to refresh immediately on the local computer.
After the policy setting is enabled, disconnected RemoteApp sessions will be logged off after the configured time delay.