The text b6a0dcd60b66, as FreeBSD 12.2-RELEASE shipped it.
register a function to be called on exit
atexit(3) on FreeBSD now