Automatic save on exit.

This will bite me one day!