code: def Run(self, unused_arg):
      
      # Send a message back to the service to say that we are about to shutdown.
      reply = rdf_flows.GrrStatus(status=rdf_flows.GrrStatus.ReturnedStatus.OK)
      # Queue up the response message, jump the queue.
      self.SendReply(reply, message_type=rdf_flows.GrrMessage.Type.STATUS)
  
      # Give the http thread some time to send the reply.
      self.grr_worker.Sleep(10)
  
      # Die ourselves.
      logging.info("Dying on request.")
      os._exit(242)
docs: Run the kill.