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