Fixed task Run when build fails