Update the bInitialized variable when unloading