Fix a bug with things destructing on the wrong threads.