Avoid abortOnError for sample codes.