Implement and use clear_worker_hostinfo() instead of deleting information about hosts.