Modification of the window to stop the program when closed, adding the
size to the conf class