I tried few commands like this but they didn't work consistently for me.
ps -A | grep Core | awk '{ print $1 }' | xargs kill -9
I tried few commands like this but they didn't work consistently for me.