Avoid error in removeObserver (padlock) on unload