Shutdown and await shutdown would work, but I don't actually need to shut it down, just make sure that all previously queued tasks have finished.