anchor.diff:  	SvcName = ?DIAMETER_AUTH_SERVICE(Address, Port),
   	case diameter:remove_transport(SvcName, TransRef) of
   		ok ->
  +			ocs_log:auth_close(),
   			diameter:stop_service(SvcName);
  -		{error, Reason} ->
  -			{error, Reason}
  +		{error, Reason1} ->
  +			{error, Reason1}
   	end.
   
   -spec code_change(OldVsn, StateName, StateData, Extra) -> Result
  
positive.code: %% @hidden
  transport_options(Transport, Address, Port) ->
  	Opts = [{transport_module, Transport},
  							{transport_config, [{reuseaddr, true},
  							{ip, Address},
  							{port, Port}]}],
  	{listen, Opts}.
  
  -spec change_state(StateName, Event, StateData) -> Result
  	when
  		StateName :: atom(),
  		Event :: term(),
  		StateData :: #statedata{},
  		Result :: {next_state, NextStateName, NewStateData}
  			| {next_state, NextStateName, NewStateData, Timeout}
  			| {next_state, NextStateName, NewStateData, hibernate}
  			| {stop, Reason, NewStateData},
  		NextStateName :: atom(),
  		NewStateData :: #statedata{},
  		Timeout :: non_neg_integer() | infinity,
  		Reason :: normal | term().
  %% @doc Chnage the state of the fsm based on the event sent
  %% by the diameter service.
  %% @hidden
  change_state(started, {closed, _, _, _}, StateData) ->
  	{next_state, wait_for_stop, StateData, 0};
  change_state(started, {watchdog, _, _, {_, down}, _}, StateData) ->
  	{next_state, wait_for_stop, StateData, 0};
  change_state(started, stop, StateData) ->
  	{next_state, wait_for_stop, StateData, 0};
  change_state(started, _Event, StateData) ->
  	{next_state, started, StateData, 0}.
  
  
negative.code: 				{ok, Ref} ->
  					StateData = #statedata{transport_ref = Ref, address = Address,
  							port = Port, options = Options},
  					init1(StateData);
  				{error, Reason} ->
  					{stop, Reason}
  			end;
  		{error, Reason} ->
  			{stop, Reason}
  	end.
  %% @hidden
  init1(StateData) ->
  	case ocs_log:auth_open() of
  		ok ->
  			process_flag(trap_exit, true),
  			{ok, wait_for_start, StateData, 0};
  		{error, Reason} ->
  			{stop, Reason}
  	end.
  
  -spec wait_for_start(Event, StateData) -> Result
  	when
  