Free up all the data we allocated during the HTML backend.