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