Add GUI exit button logic