I have little experience with ZNC, however, if a channel is being closed this presumably means that mIRC is receiving a PART message. Is that the case? Can you enable debugging with "/debug on" and post the raw log for this event?