[refs #93] Fixed some problems when destroying objects that are moved to another thread