Initiates process termination.
This function can be called to terminate the process and will return immediately.
Note that a terminated process does not have a meaningful exit code.