Added try...finally