builds: removes future jobs when one of the jobs fail

improves throughput by purging future jobs when the first job fails.

This  pull request is a shot in the dark, I don't know this code at all...