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