Shuts the queue down, killing all worker threads.
On return from this method, all worker threads will have been terminated. Any data in the queue will be purged when the queue is destroyed.