I honestly don't know what causes XSE to close suddenly when I use it, though...
Though it often happens when after I compile a script, and copy the offset of the script, and paste it on A-Map. XSE pops up a window where I can copy the offsets for my scripts. That's where the closing is most likely to happen to me...
Maybe it felt ignored and decided to close itself?
After it closes, I double click XSE again to open it, but the second it shows itself, it immediately closes. Takes me three to four attempts before it opens stably...