Better mgrep client handling