* Also improve main() cleanup to fully process all queued async operations (including their cancellations)
(cherry picked from commit d82b2b1a6712df685b989911e3e519809935de03)