code: public static void closeQuietly(final Writer aWriter) {
          if (aWriter != null) {
              try {
                  aWriter.close();
              } catch (final IOException details) {
                  LOGGER.error(details.getMessage(), details);
              }
          }
      }
docs: Closes a writer, catching and logging any exceptions.
  
  @param aWriter A supplied writer to close