Fixed bugs where save as csv did not work for...

opt files, also save prompts on Exit work.