I use a global variable, creating or deleting it via its Invoked method;
object magicClassObjectDeleteVar = project.GlobalVariables.GetType().GetMethod("DeleteVariable").Invoke(project.GlobalVariables,new object[]{"
[email protected]"});
Project 1 has one thread and when it finishes...