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