anchor.diff:  %%--------------------------------------------------------------------
   -spec terminate(Reason :: (normal | shutdown | {shutdown, term()} | term()),
       state()) -> term().
  -terminate(_Reason, _State) ->
  -    ok.
  +terminate(_Reason, #state{connections = Cons}) ->
  +    lists:foreach(fun(Conn) ->
  +        connection:close(Conn)
  +    end, maps:keys(Cons)).
   
   
   %%--------------------------------------------------------------------
  
positive.code: %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Fetches peer nodes and connects to those that are not yet connected.
  %% Also resets renewal interval but only if no errors occurred. Otherwise
  %% schedules next renewal.
  %% @end
  %%--------------------------------------------------------------------
  -spec renew_connections_insecure(state()) -> state().
  
negative.code: %%--------------------------------------------------------------------
  %% @private
  %% @doc
  %% Connects to peer nodes with witch he is not yet connected if next
  %% renewal is not scheduled. Otherwise does nothing.
  %% @end
  %%--------------------------------------------------------------------
  -spec renew_connections(state()) -> state().
  