Restart only if needed