Terminate the correct process.