rollback stack before executing ensure clause.
catching NameError here is not desirable.
Merge pull request #1184 from iij/pr-ensure-on-correct-stack

Rollback stack before executing ensure clause.