Fixed a number of resource leaks and eclipse warnings

Hi,

I figured a good way to get going with the code base would be to deal with a number of eclipse warnings. I haven't done anything serious yet, I just fixed a number of potential resource leaks in Utils.java. They aren't that harmful in a desktop application compared to my usual line of work, but I like not having warnings in a code base. :)