handle delete errors.