added failOnError option for C1541 commands