diff --git a/scripts/mash_run.sh b/scripts/mash_run.sh
index dd06544..deb9974 100755
--- a/scripts/mash_run.sh
+++ b/scripts/mash_run.sh
@@ -129,7 +129,11 @@ mash_run () {
 	local tag=$1
 	local log=$2
 	${MASH} -p ${MASH_DEST}/ -o ${MASH_DEST}/ ${tag} &> ${log}
-	[ $? -gt 0 ] && echo " -> [ERROR] mash run failed ${log} "
+	if [ $? -gt 0 ] 
+	then
+		echo " -> [ERROR] mash run failed ${log}"
+		rm -rf $MASH_CACHE/$tag.buildlist
+	fi
 	( $optionv ) && echo " -> [INFO] mash run succeeded ${log}"
 }