Build fix for 'DynamoModel.ShutDown' related InvalidOperationException

Build fix, merging this in by default.