Make reset() safer if the new throws.