Classify compiler exit reasons (#17028)