Robot Brain not turning on

While we were programming the robot would randomly turn off and we would have to unplug and re plug the battery to use the brain. Do you have a easier way to make this work?

ROBOTC has no way to remotely turn off the cortex, so perhaps you have a intermittant battery connector or something like that.