Fixed FindBugs bug

Fixed the stream closing findbugs, and the other bug found by FindBugs is worthless, stupid, and incorrect. It thought an xml tag was a class name that needed to be capitalized.