well in true C fashion you really should just turn it into a user defined function that you can call anywhere in your sketch you want, as so add the following code either before the setup() function of after the loop() function.
void stopSketch(void)
{
noInterrupts();
while(1) {}
}
So anywhere you want to stop the sketch just add the statement
stopSketch()
Lefty