I think I've had this before.
Does it say like, "Windows has encountered a fatal error and must close"?
I get that every once in awhile. Kinda annoying.
If it happens every so often I wouldn't worry about it, but if its doing it a lot, then I would check more into it. Usually, it will give instructions, like "if this event keeps occurring, please take the following steps."
Hope this helps.