Added support for failed jobs