code cleanup
update data when cancel

update download in database
stop timer