Frequent users of putty and QTP should have encountered inactive putty screen problem sometimes.

Frequently I got this problem when testing with Putty using SSH. I have a recovery scenerio for object not found error for putty but not for this one.

How should I design a recovery scenerio for this inactive putty screen error ? How can get QTP to reconize that putty screen is inactived during testing ?
Should I put a control before every putty SSH command ? -that means slowness of the test.

What is your wayt to handling this putty problems , please I need some advices.

PS: I do not think the problem is with Connection keepalive timeout (I set it to 30)