The StopProgram function stops the NXT-G program (.rxe file) which is currently running on the NXT brick.
nxt.StopProgram();