Implement kill() and exit() in the process manager.