Poison the WaitGroup mutex or something to forward panics from scoped tasks to
the main thread.
