Selling or donating a beat up car. Thoughts, experiences?

IIRC, we donated a car to the Salvation Army when the repair bill came to be more than it was worth. A few months later, we got an impound notice – turned out that the new owners didn’t bother to put it in their name.

I still wonder if we could have gone to the impound lot and got our now fixed up car back.