anchor.diff:          {Name, start_link, [Opts]},
               permanent, 10000, worker, [Name]}.
   
  -%% close all listeners first...
  -prep_stop(State) ->
  -    stop_listeners(),
  -    State.
  +-spec stop(State :: term()) -> term().
  +stop(_State) ->
  +    stop_listeners().
   
   stop_listeners() ->
       %% ensure that esockd applications is started?
  
positive.code: -behaviour(application).
  
  %% Application callbacks
  -export([start/2, prep_stop/1, stop/1]).
  
  -define(PRINT_MSG(Msg), io:format(Msg)).
  
  
negative.code:             emqttd:close_listeners(Listeners)
      end.
  
  