Revert dropped when error returned.

Good question, I suppose just to be explicit. And I only noticed this issue when there was an error.