fix file dialog exception handling