catching ValueError in mark_dead