Allow overriding OnCleanupEmementUnloaded, to e.g. allow changing the cleanup behavior.