Avoid an infinite loop with trace exceptions
Avoid more potential infinite loops