Thank you for the response Khaled. After investigating with TCPView, it appears what's occurring is the server isn't severing the connection as early as I expect. As you said it's probably just the more accurate way the new mIRC handles the port state.

I will adjust my script to be more robust in terms of actively closing sockets that i have determined to be "complete".

Thanks again!