Use a sheet rather than a dialog for some parts of import/export.
I had no idea you could use class property access like this it's the best thing ever.
Nicer function to present the error.