scheduler.stop takes care of cancelalltasks