anchor.diff:  			    _ ->
   				{FWReturn,TSReturn,EndConf1}
   			end,
  +		    %% clear current state in controller loop
  +		    group_leader() ! {set_curr_conf,undefined},
   		    put(test_server_init_or_end_conf,undefined),
   		    case do_end_tc_call(Mod, Func, {FWReturn1,[EndConf2]}, TSReturn1) of
   			{failed,Reason} = NewReturn ->
  
positive.code: 					%% group leader process or io will cause deadlock,
  					%% so we spawn a dedicated process for the operation
  					%% and let the group leader go back to handle io.
  					spawn_fw_call(Mod,Func,Pid,{timetrap_timeout,TVal},
  						      Loc1,self(),Comment),
  					undefined
  				end,
  
negative.code: 	    case CurrConf of
  		{EndConfPid,{Mod,Func},_Conf} ->
  		    {_Mod,_Func,TCPid,TCExitReason,Loc} = Data,
  		    spawn_fw_call(Mod,Func,CurrConf,TCPid,TCExitReason,Loc,self(),Comment),
  		    run_test_case_msgloop(Ref,Pid,CaptureStdout,Terminate,Comment,undefined);
  		_ ->
  		    run_test_case_msgloop(Ref,Pid,CaptureStdout,Terminate,Comment,CurrConf)
  