better handling of execeptions on Open and Save dialogs