OK, I did some digging, and this should not be an issue. By the time this shutdown callback is invoked, _all_ threads have been shut down (including finalizer and TP threads), and the profiler event flags are set to zero immediately after this callback returns. So no more events will come from the main thread, either. 