def _on_window_closed(self, window, trait_name, event):

        self.windows.remove(window)

        # Event notification.
        self.window_closed = WindowEvent(window=window)

        # Was this the last window?
        if len(self.windows) == 0:
            # Event notification.
            self.exited = self

        return

#### EOF ######################################################################
Get metadata for all aggregates that host belongs to.
dataset/ETHPy150Open enthought/pyface/pyface/workbench/workbench.py/Workbench._on_window_closed--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/db/api.py/aggregate_metadata_get_by_host