Program Robot to Shut Off?

Hey, I was wondering if there was any way to program my robot in robotc to shut off by itself. Like if I had code like the following :

if (nLCDButtons == 5)
//5 being the 1st and 3rd LCD Buttons
{
ShutOffRobot;
}

Is there a line of code that would shut off the cortex without having to physically shut it off?

Or would I just have to make a little servo rig or something to physically do it?

I’m afraid that’s not possible. The cortex has a physical power switch that connects and disconnect the battery to the electronics inside the cortex, we have no ability to control that from software.