Update htmlfile.py

Fixed missing parameter to close_frame also error trapping additional attempt to close stream