public void Cleanup() { foreach (var document in DocumentTabs.Documents.OfType<EditorViewModel>()) { document.Model.ShutdownBackgroundWorkers(); } }