Fixed resource leaks.
Created utility method to close Closeables quietly.
Merge pull request #91 from hborders/resource_leaks

Fixed resource leaks.