Ensure services are stopped before uninstalling them