anchor.diff:  %% limitations under the License.
   %%
   -module(ns_bootstrap).
  +-include("ns_common.hrl").
   
   -export([start/0, stop/0, remote_stop/1, override_resolver/0]).
   
  
positive.code:     end.
  
  stop() ->
      error_logger:info_msg("Initiated server shutdown"),
      RV = try
               ok = application:stop(ns_server),
               error_logger:info_msg("Stopped ns_server application"),
               application:stop(os_mon),
               application:stop(sasl),
  
negative.code: 
               ok
           catch T:E ->
                   Msg = io_lib:format("Got error trying to stop applications~n~p",
                                       [{T, E, erlang:get_stacktrace()}]),
  
                   (catch ?log_error(Msg)),
                   (catch error_logger:error_msg(Msg)),
                   {T, E}
           end,
  
  