handle Terminated Process
Subclasses of Entity can use this method to clean up after a process is terminated for the entity. By default, it does nothing.
The entity has already been released by the time this is called: it is no longer bound to the terminated process and is in the process-ended state. So this is the place to decide what the entity does next, including activating a new process instance on it — abandon the task that was terminated and start a recovery task, for example. The terminated process instance itself cannot be reused; create a new one.
It is also called for every entity still waiting when a replication ends, as the entities are terminated then. A process activated or a wake-up asked for at that time is dropped, since no event can happen; isReplicationEnding on the process model tells the two cases apart.
Parameters
the process that was terminated.