Use Java 1.7 closeable resource blocks