The issue here is the "SenderWorker" objects get created in the main test thread, then are passed to new threads which use them. However the main thread destroys the object. Normally this doesn't matter as those threads finish first, then the main thread finishes. 

Looking at this more I should probably just fix the issue as there's no reason the thread can't construct this or get a copy.