Well he won't be done with wrestling, wrestling are only done with wrestling when they die.
But if this is it for him in WWE its a shame because he's been one of the best things on the show for ages, but its always good to see people walk away on their own terms while they still can, and with the way his body has been going lately he might not have been able to walk away after much longer.
He still went about it in a stupid way though. Go to the office, explain how things are, someone in Punks position would more thna likely have been allowed to slow things down and go out in a decent manner, rather than disrupting plans cause you had a sulk on and just walked out.