Popup closes when not focused