code: public static void bestEffortDiscardAllStateObjects(
  		Iterable<? extends StateObject> handlesToDiscard) throws Exception {
  		LambdaUtil.applyToAllWhileSuppressingExceptions(handlesToDiscard, StateObject::discardState);
  	}
docs: Iterates through the passed state handles and calls discardState() on each handle that is not null. All
  occurring exceptions are suppressed and collected until the iteration is over and emitted as a single exception.
  
  @param handlesToDiscard State handles to discard. Passed iterable is allowed to deliver null values.
  @throws Exception exception that is a collection of all suppressed exceptions that were caught during iteration