Save on exit if there are new changes