Removed redundant semaphore from the main TaskProcessor.
Fixed FunctionTask to set auto delete to true.