hopefully fixed the gui not quitting after closing finally. please test