do a check if it's canceled and stop sending data back