Not sure if you would still be interested, but I found a way to intercept the close message. You can make the game do some kind of last save call before it closes.
Which I honestly think is the better option than disabling native window operations entirely. Also, there's nothing stopping me from just ending the task in task manager.