Obviously its going to show that its debugging in that window if you tell it to. Just becaue you close the window doesnt mean it should clear the line "* Debug output on (@win)" from the window you typed it in. Thats like saying that mirc should clear all the lines typed by a user from a channel when s/he parts the channel.