In reply to pradeep.

This could be a firewall timeout. If there is anyway to interject a periodic "ping" during the sleep mode (a %put statement in SAS, perhaps), you might be able to keep the connection alive.