public static void finishIfApplicableAndLogException(Object toFinish) {
    try {
      finishIfApplicable(ImmutableList.of(toFinish));
    } catch (Exception e) {
      log.info("Exception while finishing {}: {}", toFinish, e);
    }
  }
public static void finishIfApplicableAndLogException ( Object toFinish ) { try { finishIfApplicable ( ImmutableList . of ( toFinish ) ) ; } catch ( Exception e ) { log . info ( "Exception while finishing {}: {}" , toFinish , e ) ; } }
If the provided object is {@link Finishable}, calls {@link Finishable#finish()}. If an
exception is thrown, it is logged and not propagated.