Bafana Bafana failed to reach Cosafa Cup semi-final