Maybe check if Tor is running before trying to kill it? Don't want an unnecessary error if Tor isn't running. On second thoughts, maybe use `/etc/init.d/tor stop` or `service tor stop`?