anchor.diff:  -module (app_handler).
   -include ("beehive.hrl").
   -include ("common.hrl").
  +-include ("git.hrl").
   -behaviour(gen_server).
   
   %% API
  
positive.code: %%                                       {stop, Reason, State}
  %% Description: Handling all non call/cast messages
  %%--------------------------------------------------------------------
  handle_info({'EXIT', Pid, _Reason}, State) ->
    ?LOG(info, "Pid exited: ~p", [Pid]),
    {noreply, handle_pid_exit(Pid, State)};
  handle_info({port_closed, Pid}, State) ->
    ?LOG(info, "Port closed: ~p", [Pid]),
    {noreply, handle_pid_exit(Pid, State)};
  handle_info(Info, State) ->
    ?LOG(info, "~p caught info: ~p", [?MODULE, Info]),
    {noreply, State}.
  
negative.code: 
  % kill the instance of the application  
  internal_stop_instance(Backend, App, From) when is_record(App, app) ->
    RealCmd = string_utils:template_command_string(App#app.stop_command, [
                                                          {"[[PORT]]", erlang:integer_to_list(Backend#bee.port)}
                                                        ]),
  
    Backend#bee.pid ! {stop, RealCmd},
  