Update gui.pl

Clicking on the main tab's x will try to PART from it.