Fixed a bug when _kill() raised an error when there was no process.