Finalize IAP transaction if there was an error.