LUN-1677: dissmiss window if it's opened in a popup