made to handle WindowEvent/WINDOW_CLOSING from child component