Add exit on error option.