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: %% @see //stdlib/gen_fsm:handle_info/3
  %% @private
  %%
  handle_info(#diameter_event{service = ?DIAMETER_AUTH_SERVICE(Address, Port),
  		info = start} = _Event, wait_for_start, #statedata{address = Address,
  		port = Port} = StateData) ->
  	{next_state, started, StateData, 0};
  handle_info(#diameter_event{service = ?DIAMETER_AUTH_SERVICE(Address, Port),
  		info = Event}, started = StateName, #statedata{address = Address,
  		port = Port} = StateData) ->
  	change_state(StateName, Event, StateData);
  handle_info(Event, StateName, StateData) ->
  	error_logger:warning_report(["Unexpected diameter event",
  			{module, ?MODULE}, {state, StateName}, {event, Event}]),
  	{next_state, StateName, StateData}.
  
  -spec terminate(Reason, StateName, StateData) -> any()
  
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
  