Make wxFileDialog parent-less, to avoid possible orphaning. (FS#1515)
Correct potential shutdown fault.