error methods within wait_for_task fixed