MEDIUM / fix potential deadlock with file chooser for windows