Thread closing modified - demux thread is now closed in TsReader destructor.