That's really not enough information for anyone to help you.
Shuts down how?
Success exit code? Failure exit code? Crash dump?
Have you tried stepping through the program in a debugger to see what happens?
Are there any error messages?
You need to both do some work to figure it out yourself as well as provide enough info for people to be able to help you. Just saying that the program "shuts down" says nothing.