Exit action - messages printed depending on...

Messages printed depending on what has changed. Which table or both, or
optimizations not saved. If optimizations, for Yes, prints filename will
be saved for each file, for No, prints filename will be deleted. Still
need to figure out how to actually delete them.