added saveChanges method call to application terminate message