Avoid an infinite loop with trace exceptions

I hit this infinite loop while trying to debug GLX2.