xml preferences, save before exit