Output exception when returned from traced method.
Add thread id to each output call.
Make test case for exceptions less flaky.