fix bad error exit setting for publish