[flashrom] Re: Restructure shutdown functions and remove global state