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