code: def del_results_for_stopped_hosts(self, scan_id):
          
          unfinished_hosts = self.get_hosts_unfinished(scan_id)
          for result in self.results_iterator(scan_id, False):
              if result['host'] in unfinished_hosts:
                  self.remove_single_result(scan_id, result)
docs: Remove results from the result table for those host