Global destructors mostly work.

Although guarantees about when they will be called aren't particularly
great.