Correct execution order for marking failure