add assertion when close tcpconnection, timer callback now test if the connection is closed