clean up tasks if upload fails