Proper catmouse thread exit.