Sometimes it's not enough. Correct way is to call `waitpid()` with some timeout to verify the process is actually stopped. We could also make second attempt with `SIGKILL` signal or just exit with error message.