Added try, catch & finally statements.