Commit offsets before exit