Add support for new PROCESS_CLEANUP event.

- this fixes some issues with process exit and termination
  - a process now stops at the entrance of exit
  - the user can query the process at this point
  - a continue after exit results in a cleanup event
  - after delivery of the cleanup event, the process is
    no longer accessible