simple like this
if (*No exact results* iswm %x) $1-2 No Results have been found | sockclose $sockname
by the way, too much thing for the alias hhfree...