handle job deletion edge cases