code: public void handleDebugEvents(DebugEvent[] events)
  	{
  		for (int i = 0; i < events.length; i++)
  		{
  			DebugEvent event = events[i];
  			if (event.getSource().equals(getProcess()))
  			{
  
  				if (event.getKind() == DebugEvent.TERMINATE)
  				{
  					closeStreams();
  					DebugPlugin.getDefault().removeDebugEventListener(this);
  				}
  
  				resetName();
  			}
  		}
  	}
docs: Notify listeners when name changes.
  
  @see org.eclipse.debug.core.IDebugEventSetListener#handleDebugEvents(org.eclipse.debug.core.DebugEvent[])