Safely retry resource deletion