It seems that if you close a channel window with CTRL-F4 or by clicking the [X], mIRC sends the server a PART command, and then after the server sends its confirmatory PART response, mIRC sends the server a second identical PART command (which the server ignores).
Does not happen with the /part command.