fixed virtual task status and cleanup handling [ci skip]