added close() methods to hmh and hb

startmode and hostSetup now communicate thru a flag;