There is no generic function for doing that, except the Quit LabVIEW node and it shutsdown LabVIEW completely. That will work, but like a friend of mine once said:
"You can sucessfully stop you car by running it into a tree -- but there can be unintended consequences..."
The problem is that if you quit LV in a subVI there is no orderly shutdown, execution stops immediately. And depending upon what your code is doing this can be a Very Bad Thing.
What exactly is it that you are wanting to accomplish? How is the program in question structured?
Mike...