system("osascript -e 'tell application \"Terminal\" to do script \"killall opencvHaarFinderExampleDebug\"'");
YES. this works. great.
I was worried that killall would force quit the app and not exit it correctly.. But I was wrong, even the exit() part of my opencvHaarFinderExampleDebug app got called correctly.
thanks.