[Spoiler] Where the hell was Tom Keen?

So I just finished season four and in the end of course Tom reappears to collect the suitcase. My only question is where he’s been because I genuinely forgot what happened to him and google didn’t give me any answers so please tell me what ended his arc and how he was written out of the show.