add option exitOnFail