Force CommandLoadFile to use always the event dispatch thread