South Africa allrounder JP Duminy wanted to finish his international career on a high but a disappointing team performance in the world cup has ended his hopes.