Added try finally.