Fixed issue with response being called after task has been cancelled