Don't abort deployment if .git* removal fails; log the error and proceed with operation.