fields should be reset inside a try/finally