Ohh yeah, he stayed in the Wall... he was the one that found Gendry when he ran back to ask for Daenery's help (I had to check that scene out to remember
)
I'm glad that he found a little place in the King's Small Council in the end, at least he got a position of respect where he could advise the king