Clean up after curl download failure

Signed-off-by: Juha Kallioinen <juha.kallioinen@jollamobile.com>