Handle dispose of popups during shutdown.