resource: fix extra vout closed without being stopped