There are timeouts that can be set in the SAS 9 environment, like the following:
You can set an inactive client timeout on the logical application servers that will disconnect clients after X amount of time if the connection is sitting idle: Force Servers to Disconnect Idle Clients
There is also a launch timeout that can be set for load balanced application servers to allow X amount of time to wait for the server to startup before failing due to exceeding that wait time.