Deallocate threading resources.
Properly shut down queue worker thread.