Removes refrences to thread spawner