enforce broker.id to be a non-negative integer
commit offsets before stopping the consumer