added cancel of tasks when giving error on rendertask