Replace grunt.fail.warn with grunt.log.writeln because the latter doesnt stop the process.