[iwhd] iwhd: handle a lost-then-restored mongo connection