If your computer keeps restarting mid-game, there are two common culprits. One is that your virtual memory is maxed out, and the other is that your system simply isn't powerful enough to handle the game's demands.
Try increasing your virtual memory, closing background programs, and lowering the game's settings. If it persists, it could also point to overheating, so make sure your machine's vents are clear and cool.