cleanup in EditorManager