Contain, correct, find the cause
ISO 9001 asks for two things when work does not conform. First control it: stop it going further, correct it, and record what was done (8.7). Then find why it happened and act so it does not happen again, and check the action worked (10.2). A nonconformance report (NCR) holds both: what was wrong, its grade, the root cause, the correction and its cost.