* [HTML,SC] Use lambda function in maplist.
* [HTML,SC] Use setup_call_cleanup/3 to ensure stream is closed.