At least you've recognised it and took the relevant action (i.e moving back down).
Personally, I do struggle with tilt a little bit (I suffer passive call down tilt, not super aggro monkey tilt). I think I've mastered not tilting when I lose to a suckout - I know I'm still winning in the long term, but I still get angry when I personally make mistakes. I'm not good at putting my mistake behind me and moving on. This leads to tilt, more mistakes -> vicious circle.
I try and stop playing when I'm playing sub-optimally, but it's usually one hand too late -
I've tried taking my time over decisions and that has helped, but I often find the one decision i take the least time over is the biggest.
The biggest factor for me avoiding tilt is ensuring I'm in the right frame of mind before starting a session. I read a poker article, review some hands from a previous session, watch a CR vid and basically ask myself if I actually want to play and I'm motivated. It's too easy to get into the habit of just firing up a poker client because you're on the computer - I almost always lose when I "just play a few hands".