In the following code I get a NoneType Error when exiting the GUI. The interface seems to work fine otherwise, but when exiting it tells me "-Tables-" is not subscript