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