We should remember what was previously registered and restore it. This relies on the core initializer not changing.