Manage proc termination (step 3)

Commented, still need the implementation!