Adding failure state
Merged fixes
Added failure states; breaks when any job fails