anchor.diff:                              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 ------
   
  
positive.code:     S1 =
      case catch(neo4j:start()) of
          {'EXIT',Reason} -> 
              log:error(self(), "starting neo4 failed: ~w", [Reason]),
              S;
          Msg           -> 
              log:debug(self(), "~p", [Msg]),
              S#neo4j{db=true}
      end,
      Workers =
          lists:foldl(fun(_I,Acc) -> 
  
negative.code:     {noreply, S}.
  
  % @hidden
  handle_info({'STOP'}, S) ->
      case S#neo4j.worker of
          yes -> nop;
          no  -> shutdown(S)
      end,
      log:info(self(),"stopping with state: ~w", [S]),
      {stop, normal, S};
  handle_info(Msg,S) ->
      log:info(self(),"info: ~p", [Msg]),
      {noreply,S}.
  