Fix a bug when closing RTSP session over TCP