Handle freeing of Class interface structs via atexit and thread-safe Class chaining in initialize.