adding isCancelled checks to the webclient.