anchor.diff:  
   handle_cast(leave, State) ->
       ?cluster_log(0001, "Node ~p is leaving cluster.", [node()]),
  +
  +    ok = file:write_file(leave_marker_path(), <<"">>),
   
       %% first thing we do is stopping nearly everything
       ok = ns_server_cluster_sup:stop_cluster(),
  
positive.code: 
  
  init([]) ->
      {ok, #state{}}.
  
  
  
negative.code:                            [Status2]),
              Status2
      end.
  
  leave_marker_path() ->
      path_config:component_path(data, "leave_marker").
  