Add support to detect when a process terminates (no longer exists).

- A new event has been added to indicate this case, PROCESS_CLEANUP.
- add associated support to Java bindings
- add test coverage for new event