move the sync-on-quit out of the destructor