Use try with resources for buffered writers and file writers With the latest Eclipse settings, a warning was shown when objects that implement Autoclosable interface are not handled within a try-with-resources statement. Use try-with-resources for BufferedWriters and FileWriters. Change-Id: Icea1da6984857d177e1e296c4dfabe450b570b9c