Added try, catch, finally