ensure bundle errors return error exit code