run: properly end demuxed output streams