Note to self: the "-v" in 'pkill -v $pid' does not mean --verbose.