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.
Parameters
terminated Process
the process that was terminated.