It also sent a big message..
The message will only have effect when Ahmadinejad is too scared to visit Iraq next time. The message should be (and I guess this is what you are referring to)”we can grab your officials and agents anytime”. But I think keeping them arrested would have given the message a bit more bite.