On your terminal server, adjust the Set time limit for disconnected session setting. In Group Policy Object Editor (Start | Run | gpedit.msc), drill-down to the setting: Computer Configuration > Administrative Templates > Windows Components > Terminal Services > Sessions. You'll see 5 settings you can adjust.