Added support for failonerror attribute.