Captues the output from _run_task and saves it in result object