don't close the input stream as HTMLParser spawns a thread internally and closing the stream leads to errors (this reverts one of my previous changes)