Add missing "if errorlevel 1 exit 1" lines