Restart main loop when switching interfaces.