saveAllEditorFiles and closeAllEditorFiles seems to be working now. More testing needed.