diff --git a/tasks/build.js b/tasks/build.js
index <HASH>..<HASH> 100644
--- a/tasks/build.js
+++ b/tasks/build.js
@@ -10,11 +10,14 @@ module.exports = function(grunt){
 		var buildOptions = options.buildOptions;
 
 		// Run the build with the provided options
-		build(system, buildOptions).then(function(){
-			grunt.log.writeln("Build was successful.");
+		var promise = build(system, buildOptions);
+		if(promise.then) {
+			promise.then(function(){
+				grunt.log.writeln("Build was successful.");
 
-			done();
-		});
+				done();
+			});
+		}
 		
 	});
Allow the grunt task to work with the watch mode