[PATCH 4/4] Remove tempfile when hash verification fails