This process is called "escheatment" and indeed, each state has its own rules.
I work for an insurance company and when checks we issued for claims don't get cashed after a year, we try to hunt down the owner to reissue. After some period of time, the funds get transferred to the State, in my case, Florida.
By turning the funds over to the applicable State, the money is no longer a liability to the issuer.