Set timeout value for TCP connetion based on CWMP session timeout. Handle expired sessions gracefully.