Can use Java 7's Try-With-Resources which is safer and more concise - ping me on the mailing list if you want an example.