Fix for a spontanious unit test failure due to a runtime being added after the task has already been removed from the runningTasks structure