close

open override fun close()(source)

Runs every emitter undo action, detaches the lifecycle observer, restores the model's null sink, and closes the output writer. Idempotent: a second call is a no-op.