Close the GUI when pipes destroyed