correctly handle job preparation failures