Bug 134238 [Undo] TriggeredOperations should close open operation on RuntimeExceptions
bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/TriggeredOperations.java
public void add(IUndoableOperation operation) {
		children.add(operation);
		recomputeContexts();
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.commands.operations.IUndoableOperation#remove(org.eclipse.core.commands.operations.IUndoableOperation)
	 */
	public void remove(IUndoableOperation operation) {
		if (operation == triggeringOperation) {
			
			
			triggeringOperation = null;
			
			
			
			
			List childrenToRestore = new ArrayList(children);
			children = new ArrayList(0);
			recomputeContexts();
			operation.dispose();
			
			history.replaceOperation(this,
					(IUndoableOperation[]) childrenToRestore
							.toArray(new IUndoableOperation[childrenToRestore
									.size()]));
		} else {
			children.remove(operation);
			operation.dispose();