Or by close() on other objects (htmllib, HTMLParser, the SAX incremental parser, etc.).
Too bad there’s more than one way to do it. :-(—Fred