In update-helper remove the tmp image on errors