/window is for dealing with custom windows not channel windows. So I don't know why you say it should be able to close a channel window. If you close a channel window without sending a part command to the server where is mIRC going to put any messages it recieves for that channel? Dumping them in the status window would look rather odd and out of place.