Propagate popupclose event. Fixes #1681