WP-3531 New close-window click event