`process_wait` (optionally prefaced with a `process_kill`) can be used
to properly close and free resources of the process.
`process_terminate` was added because `process_kill` is a forceful
exit, we were missing a way to request the process to terminate.