anchor.diff:  handle_cast({'STOP'}, S) ->
       case S#neo4j.worker of
           yes -> nop;
  -        no  -> lists:map(fun(W) -> W ! {'STOP'} end, S#neo4j.workers)
  +        no  -> shutdown(S)
       end,
       log:info(self(),"stopping with state: ~w", [S]),
       {stop, normal, S};
  
positive.code:     {noreply, S}.
  
  % @hidden
  handle_info(Msg,S) ->
      log:info(self(),"info: ~p", [Msg]),
      {noreply,S}.
  
negative.code:                             end
                      end, [], lists:seq(1,S1#neo4j.n)),
      S1#neo4j{workers=Workers}.
  
  shutdown(S) ->
      lists:map(fun(W) -> W ! {'STOP'} end, S#neo4j.workers),
      neo4j:stop().
  
  %% ------ TESTS ------
  
  