tetra/hostserv: make a little bit more robust