use try/finally