I'm a bit confusing from this message, are you sure it is correct? What it means? The `attach` event is fired before the window is closed, no? Am I missing something?