Added usage of finally block.