Small improvement to cancelling download.