[BC Break][Debug] #2042 implementation of fatal error logging
tweaked previous merge (refs #6474)