Added 'failures' options
Switch arguments order
Merge pull request #7 from floatdrop/master

Support continueOnError