+ Added a line to know when the GUI is closed