Close the GUI when pipes destroyed
Merge pull request #578 from aznhe21/patch-pipes-useable

Close the GUI when pipes destroyed