Avoid adding elements to QueueingThread if it's already stopped.