declare variable outside try/finally