code: def close (self):
          
          self.wsock.close()
          data = self.sock.recv(self.sock_rcvbuf)
          while data:
              if "FOUND\n" in data:
                  self.infected.append(data)
              if "ERROR\n" in data:
                  self.errors.append(data)
              data = self.sock.recv(self.sock_rcvbuf)
          self.sock.close()
docs: Get results and close clamd daemon sockets.