Make the instances endpoint know the difference between pending and failed stages
Rever the recursive delete error code change