break in gui and no-gui case
Merge pull request #738 from Jojo-Schmitz/nogui

break in gui and no-gui case