Popup may throw null ptr on shutdown