Right, he should be using a destructor instead, although AFAIK that requires (in C) both ELF and a non-standard compiler extension albeit those are available everywhere it matters on Linux and *BSD.
It's kind of confusing to me why the author wants this or believes it should be the default behavior.