Destroy finished threads more conservatively
Get rid of pimpl idiom
Merge branch 'core'