Add option to break a chain if error occurs