Moved save code from destructor to explicit save method