The ODS HTML CLOSE statement closes the HTML destination and all the files that are open for that destination.
ods html close;