Log an error instead of failing if module delete fails

Otherwise the build will fail on windows