safeshutdown branch initially added.
version 1.2.0 : TaskCompletion event added in ProcessingQueue.