pub fn find_exit_reason_marker( text: Option<&str>, accept: impl Fn(&str) -> bool, ) -> Option<ExitReasonMarker>
Scan log text for the first accepted fatal marker, most specific first.