clenaup code handling conn.rdy_timeout