Disconnect previous gui if new one connects.