Record failures and actually fail the build.