ac68a6411a
The QueueListener change routes rotating file handlers through an in-memory queue drained on a dedicated thread, with an atexit hook to flush on shutdown. But _exit_after_graceful_shutdown() uses os._exit, which bypasses atexit — so on the early-exit and #53107 hard-exit paths the queued records (including the shutdown reason) were silently lost. Explicitly flush_log_queue() before os._exit, and correct the now-stale comment that claimed handlers are synchronous with nothing pending.