finish html_stream