     case Serverboards.ProcessRegistry.get(Serverboards.Rules.Registry, plugin_id) do
       nil ->
         if state.trigger.stop do
-          Logger.info("Calling stop: #{plugin_id}.#{inspect state.trigger.stop}(#{inspect state.stop_id})", rule: rule)
+          Logger.info("Calling stop: #{plugin_id}.#{inspect state.trigger.stop}(#{inspect state.stop_id})", rule_id: rule.uuid, service_id: rule.service, rule: rule)
           case Plugin.Runner.call( plugin_id, state.trigger.stop, [state.stop_id] ) do
             {:ok, true} -> :ok
             res ->
-              Logger.error("Error stopping rule #{inspect rule.uuid} when calling stop: #{inspect res}", rule: rule, res: res)
+              Logger.error("Error stopping rule #{inspect rule.uuid} when calling stop: #{inspect res}", rule_id: rule.uuid, service_id: rule.service, rule: rule, res: res)
           end
         else
-          Logger.warn("Rule #{inspect rule.uuid} stop is not handled in any way. May need a stop method, or not be a singleton.", rule: rule)
+          Logger.warn("Rule #{inspect rule.uuid} stop is not handled in any way. May need a stop method, or not be a singleton.", rrule_id: rule.uuid, service_id: rule.service, ule: rule)
         end
       pid ->
-        Logger.info("Terminate rule, stopping plugin.", rule: rule)
+        Logger.info("Terminate rule, stopping plugin.", rule_id: rule.uuid, service_id: rule.service, rule: rule)
         Serverboards.Plugin.Runner.stop(pid)
     end
     :ok

              {:error, :cant_start}
          end
        else
          Logger.info("Not starting shallow rule #{inspect rule.name}. #{inspect rule} #{inspect trigger}")
          :ignore
        end
    end
  end

  def stop(uuid) do
    Logger.info("Stop rule // #{uuid}", uuid: uuid)
    case Serverboards.ProcessRegistry.pop(Serverboards.Rules.Registry, uuid) do
      nil -> :ok
      pid ->

    default_params = get_default_params(%{ service: service, rule: uuid})
    params = Map.merge(params, default_params)

    Logger.info("Start rule with trigger #{inspect trigger}, #{uuid}", rule_id: uuid, trigger: trigger, params: params, actions: actions, service_id: service)
    [trigger] = Serverboards.Rules.Trigger.find(id: trigger)
    plugin_id = case Plugin.Runner.start trigger.command do
      {:ok, plugin_id} -> plugin_id
      {:error, desc} ->
        Logger.error("Could not start trigger", description: desc, rule_id: uuid, service_id: service)
        raise CantStartRule, message: to_string(desc)
    end

