AFC Wimbledon held out for 79 minutes against League Two play-off hopefuls Rotherham but ultimately ended up on the wrong end of a 1-0 scoreline.
Rotherham sub Kieran Agard grabbed the winner when his header hit the post and rebounded back into the net off keeper Neil Sullivan.
The match marked the end of Steven Gregory's stint at the club and boss Neal Ardley was full of praise for his skipper.
“Steven has done really well and been our captain since I have been here," he said.
"Whether we will be able to get him back in January is another matter as there will be a few clubs interested in him. But he has been a great servant for us and whatever happens, we certainly wish him well.”
Dons travel to second-placed Port Vale this weekend.