Fixed issue where sleep time was always 0.
Fixed TaskProcessor::run's restoration of the previous active TaskProcessor.