// {'EXIT', From, Reason} comes in this way
if (t3.elem1 == ERT.am_EXIT) {
// close is handled by exception handling code
return;
}
} else if ((tup = msg.testTuple()) != null && tup.arity() == 5) {
// {'DOWN', ref, process, pid, reason}
if (tup.elm(1) == ERT.am_DOWN) {
ERef ref = tup.elm(2).testReference();
instance.processExit(ref);
}