fixed double-close caused by demuxer