Yes, I said that he intended to get captured. What I'm asking is why? Why bother to get yourself captured if you then immediately escape? Was it so that he could look M in the eye? Surely he could have done that just before he killed her if he had succeeded at Westminster?
He wanted to humiliate her and rub it her face. Not only did he outwit her by escaping, but carried out an attack in the heart of London right under her nose.