1)
$address will not work as you have it. You need to use
$address($nick,2) os another number in place of the 2.
2)
You could put
/cose -m $nick
below the /ignore line that way you ignore them and close the query.