anchor.diff:  
   execute_command_or_send_result([], ConType, Connection, undefined, Log
                                  , State) ->
  +    lager:debug("runner ~p: execution done, closing connection", [self()]),
       close_connection(Connection, ConType),
       [LastLog|_] = Log,
       Result = create_result(LastLog, Log),
  +    lager:debug("runner ~p: sending result ~p", [self(), Result]),
       {ok, NewState} = send_reply(Result, State),
       {stop, normal, NewState};
   execute_command_or_send_result([Cmd|T], ConType, Connection, undefined, _Log
  
positive.code: 
  execute_command(Cmd, ssh, Connection, State) when is_list(Cmd) ->
      {ok, ChannelId} = ssh_connection:session_channel(Connection, infinity),
      success = ssh_connection:exec(Connection, ChannelId, Cmd, infinity),
      CmdState =  #{channel_id => ChannelId, cmd => Cmd},
      {ok, State#state{ cmd_state = CmdState }};
  execute_command(Cmd, local, _Connection, #state{cmd_log=Log} = State)
    when is_list(Cmd) ->
      StdOut = list_to_binary(os:cmd(Cmd)),
      trigger_next_command(),
      CmdState = #{std_out => [StdOut], cmd => Cmd, std_err => []},
      NewState = State#state{ cmd_state = #{},
  
negative.code:     ScriptParam = add_user_info_if_present(ScriptParam0, UserInfo,
                                             AddAccessToken),
      EncodedJson = base64url:encode(jsone:encode(ScriptParam)),
      lager:debug("runner ~p: will execute ~p with parameter ~p",
                  [self(), Cmd, ScriptParam]),
      CmdLine = << Cmd/binary, <<" ">>/binary, EncodedJson/binary >>,
      lager:debug("runner ~p: the command line is (parameter in base64url): ~p",
                  [self(), CmdLine]),
      CmdList = [CmdLine],
      {ok, State#state{cmd_list=CmdList,
                       connection = Connection, con_type = ConnType}}.
  