Window now closed before notifiying delegate (to be able to show context menus).