Bosnia coach Safet Susic believes his side can return home from their first World Cup with some pride after beating Iran 3-1 in their final group match.
The Europeans had high hopes going into the tournament despite it being their first on the world stage but were eliminated after just two matches.
Despite some tough luck they at least finished with a win with goals from Manchester City striker Edin Dzeko, Miralem Pjanic and Avdija Vrsajevic with Reza Ghoochannejhad's late consolation never enough to push Iran through to the last 16.
"We dominated the game and deserved to win," Susic told his post-match press conference.
"Although I know that Iran wanted to progress, the victory was important for us.
"We can now go home with our heads held high. We wanted to leave a good impression, but we're not satisfied because we think that we could have done more.
"I'm not being arrogant when I say that, but if we'd played a bit better against Nigeria and had a bit more luck, I think we would have made the round of 16.
"I was a little surprised by the way Iran played today, they can attack teams extremely well and I was expecting them to be adventurous, but I thought at times it was almost as if they would have been content to draw."
Iran coach Carlos Queiroz felt the exertions of the tournament took its toll on his side.
"I have to congratulate Bosnia and Herzegovina, they deserved to win and, without disrespect to Argentina or Nigeria, I believe that they should have qualified from this group," he said.
"They have great players who play for great clubs - and I do believe that they are the best team of the group.
"We pushed ourselves to the limit, mentally and physically and I'm very proud of them.
"We were exhausted after the Argentina game but we fought for 90 minutes.
"Despite all our difficulties, we kept pushing and created some good chances but Bosnia and Herzegovina were better today.
"They were on another level and we are not at that level due the facilities in Iran.
"We finish our job here with no regrets, no excuses."
Queiroz, however, will not be continuing in his role as Iraq boss.
"I didn't receive any single concrete or attractive proposal to stay on over the last 11 months," he told reporters.
"As you can imagine I feel very proud and it's an honour to work for Iran. I will always keep the country and the players in my heart.
"I fell in love with them but you can't have a marriage when only one person wants to stay married and unfortunately it's not the people on Facebook who make the decision.
"After going through the 11 months without hearing anything, I have been forced to make a decision.
"I have just come here to say thank you to all who have supported me and given me this opportunity to work for Iran."