example 

How would you implement the process to terminate?