Added to terminate the download thread.