Popup may throw null ptr on shutdown

No big deal, but I noticed it when debugging dispose, it sometimes threw exception on ObjectRegistry.shutdown()