Clean up code. dump.addAttribute() within the surrounding try / finally / close