Modif EXIT_ON_CLOSE