Fix issue 29: add continueOnError option

Should correctly fix issue #29