Does this imply that the threadTerminationHooks also need to clear their thread local storage, otherwise it could be freed twice.