           end
         end
         {:noreply, state}
-      _ -> {:stop, "The script failed. #{args}", state}
     end
   end
 


  def call_script(experiment, func, args) do
    try do
      apply(experiment.module, func, args)
    rescue
      e -> {:error, e}
    end

            {:noreply, {xid, experiment, Map.drop(result, ["host", "participant"])}}
        end
      {:error, e} ->
        Logger.error(Exception.format(:error, e, System.stacktrace()))
        if experiment.module.script_type == :data do
          case sender do
            nil -> nil
