Refactoring structure to allow restart/terminate all for other editors.