Add separate app domain.
Dynamo revit in a separate app domain.