Exception and error handling, NBT rewrite Part 1, Cleanup