Also call AutoSave() when leaving buffer