http://gambaswiki.org/bugtracker/edit?object=BUG.1673&from=L21haW4- Comment #1 by Benoît MINISINI: Apparently the GUI components quit when they are no windows opened. But when you use the interpreter alone, creating a timer prevent the event loop from quiting.