The ODS HTML CLOSE statement closes the HTML destination and all the files that are associated with it.
ods html close;