Some more fixes

Refactoring backgrounds and adding `RunStatus.failures` getter.