Hi, I have no idea why it closes like that. I haven't seen any problem like this before and my friends who have played it had no issues. I made the game with OpenGL so it might have to do something with that, but I have no idea where to start to fix it. Sorry about this. :(
btw I played your game and it works fine on my computer, it was a little challenging but it was pretty good