Saving progress on better exit handling