Implement failure policies

When running the jobs we need better options for detecting
the failures that occur. This adds a separate object that
can register those failures.