fix task not ending for orchestrator@0.3.4+