Merge "Store exiting thread ids and names while tracing to output later."