Don't know as I don't use the program often enough to be real familiar with
the options. Maybe there's something in the menu settings about "disconnect
after x minutes of idle time"?
Suggest that you repost this question in the newsgroup for Windows
messenger. Here's a link to a page where you can connect using your browser
or your newsreader of choice: