diff --git a/builder.go b/builder.go
index <HASH>..<HASH> 100755
--- a/builder.go
+++ b/builder.go
@@ -78,6 +78,7 @@ func BuildAndRunDir(dir string, filters []string) error {
 	cmd.Stdout = os.Stdout
 	cmd.Stderr = os.Stderr
 	if err := cmd.Run(); err != nil {
+		buildCleanup(dir)
 		os.Exit(1)
 	}
Ensure that directory is cleaned up when exiting