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