Wow, not only did everybody behave stupidly, this episode was predictable at every turn.
It starts with a mistake:
CIA sends ONE guy to apprehend their best man? How is that supposed to work? Luck?
And ends with sheer stupidity:
Why didn't Castle and Becket call it in when they had the guy everybody was after, the one guy who could tell them whats going on...