hnetd: various stability fixes