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