Better debug tracing for exceptions in threads.