### Description (Medium) On server termination, we must ensure the `RecordWriter` queue is fully flushed to disk. ### Task - [ ] Add an `atexit` or lifespan-cleanup handler that calls `RecordWriter.close()`. - [ ] Ensure the background worker thread (from Issue #48) finishes writing all queued records before the process exits.
Description (Medium)
On server termination, we must ensure the
RecordWriterqueue is fully flushed to disk.Task
atexitor lifespan-cleanup handler that callsRecordWriter.close().