gui: Close patches as before, except when trying to close the first opened patch, then we hide the gui instead