Close unlikely race: don't reset before export.