Update gui.pl

Clicking on the main tab's x will try to PART from it.
Merge pull request #16 from Powiee/patch-1

Update gui.pl