another fix to file dialog exception handling