Unfortunately, it seems my little script doesn't prevent the crash to occur. Sorry.
Maybe it lowers the rate... I don't even know. I didn't crash for almost a week. And now, I'm back to "normal", around once a day. With this same close alias.
Definitely, there's something else. But as far as I can see (with logging trace messages), it is really related with the closing of the chat windows.
So annoying!