Hi,
To me it seem that the message you are getting in your status window "* No such connection id: 25" is a response from mirc to something happening in your script. Therefore it must be something to do with your script and not with mirc. Your script is asking for connection id 25 and mirc is telling you that it doesnt exist. Maybe I have missed the real problem here...