Close tabs implemented with bugs

-Throws an exception for when last tab is closed
-Also won't delete it from GUI, it only disappears when a new tab is
created.

No idea why. You can comment out the "case closetab" area in
GUIController to remove the entire function.