fini array functions should be called before the fini function.