Thank you for the reply. I'm using Adobe Premiere CC. My computer specs are:
Intel i7 3770 3.4 GHz. Motherboard Intel B75EN 32 GB RAM, video card: evga gt650, 2 SATA2 hard drives. 1K Watts power supply. So far, it only restarts with Adobe Premiere but I think it might restart with other programs but I haven't tried to render in After Effects.