added failonerror to closure-sample build