anchor.diff:  
   -spec terminate(term(),state()) -> no_return().
   terminate(_Reason, St) ->
  -    closeFiles(St#state.fds).
  +    close_files(St#state.fds).
   
   -spec code_change(term(),state(),term()) -> {ok, state()}.
   code_change(_OldVsn, State, _Extra) ->
  
positive.code:                      _Tuple ->
                           Counter
                   end,
      logIsland(Key, FDs, NewCounter, Funstats).
  
  
  -spec closeFiles(dict:dict()) -> any().
  closeFiles(Dict) ->
      [case X of
           {Id, FD} when is_atom(Id) -> file:close(FD);
           {_Id, D} -> [file:close(FD) || {_Stat, FD} <- dict:to_list(D)]
  
negative.code:     Env = Cf#config.agent_env,
      Funstats = Env:stats(),
      Stats = mas_misc_util:determine_behaviours(Cf) ++ [Name || {Name, _MapFun, _ReduceFun, _InitVal} <- Funstats],
      Dict = prepare_dictionary(lists:reverse(Keys), dict:new(), Cf#config.log_dir, Stats),
      {ok, #state{fds = Dict,
                  funstats = Funstats,
                  counters = create_counter(Keys, Cf),
  