Problems with automatic saving of all open windows in editor