Exitcode 1 on any errors.
Fix bug in handling item_types