Fail build at end of script in stead of end of check task