I told you, the command is /closemsg <nickname>.

/closemsg $active
/closemsg $query(290823424)
/closemsg etc.

They all work (except the second one, I don't believe you'll ever have that much queries opened).

.Close Query:/closemsg $active