Hi

Try using
Exit(0);

This will terminate ur calling process