There is a race between the detach (where the task generates a stop event), and the termination (a termination event).
2005-11-07 Andrew Cagney <cagney@redhat.com> * TestTaskAttachedObserver.java: Add .ttestAttachDetachExitingTask. * TaskState.java: For "detaching", handle .processPerformTerminating.