use pkill instead of pipe madness

You can also use pgrep to grep for running processes and kill them