He had to die to beat that war potential. That doesn't count.
You think Urahara wouldn't be able to think of another way to get him without Grimmjow there?
Well obviously Uraha planned something between him and Nel being out of the poison circle later on to, I'm guessing, heal everyone....
He still got K'OD though