Sometimes, a window is closed and you don't know it's closed.
In example:
- a detail window will be opened from main window
- user will close main window
- and there is no way to go back to main window.
This sample helps me to fix it on my own apps.
If you think it can be improved, don't hesitate to comment. ^^