anchor.diff:  stop_trace(undefined) ->
       ok;
   stop_trace(Trace) ->
  -    ok = lager:stop_trace(Trace).
  +    ok = file:close(Trace).
   
   socket_close({udp, Socket}) ->
       capwap_udp:close(Socket);
  
positive.code:             EventLogPath = filename:join([EventLogBasePath, ["events-", erlang:binary_to_list(CommonName), ".log"]]),
              lager:info("EventLogP: ~w", [EventLogPath]),
  
              %{ok, EventLog} = lager:trace_file(EventLogPath, [{class, wtp_statistics}], debug),
              State1 = State#state{event_log=undefined, socket = {dtls, SslSocket}, session = Session, id = CommonName},
              %% TODO: find old connection instance, take over their StationState and stop them
              next_state(idle, State1);
          Other ->
  
negative.code:                                    fun({Key, Value}, {FStr, FVars}) ->
                                             {FStr ++ "~p(~p), ", FVars ++ [Key, Value]}
                                     end, {"~p@~p: ", [State#state.id, Now]}, Elements),
      EventData = io_lib:format(FormatString ++ "~n", FormatVars),
      ok = file:write(State#state.event_log, EventData),
      next_state(run, State1);
  
  run(Event, State) ->
  