Explicitly close html file