Currently the HTML Help ActiveX Control Close command does not work properly with Web pages that contain frames. Because of this, you will need to create a special link to close such pages. This link will close the main browser window and all of the frames it contains.
<A HREF=JavaScript:window.top.close()>Close</A>