closeout

Runs every exit handler exactly once on every path out of the process, restores the terminal, and holds shutdown to a deadline so it cannot hang. Zero dependencies. Drop-in paths for signal-exit, exit-hook, restore-cursor, cli-cursor and onetime.

Part of the burgee family, graded against its incumbents on the compatibility page and drawn in the gallery.