Replaced Stop(true) with StopAllTasks()