Handle callbacks correctly when tasks fail.
Prevent build if there are dockerfile_lint errors.