Use Java 7's autoclosable syntax instead of try/finally
Merge pull request #379 from benmccann/autoclose

Use Java 7's autoclosable syntax instead of try/finally