Hey Chris great question.
When mining stops miners will hopefully still maintain the Bitcoin ecosystem through mining fees attached to Bitcoin transactions. Also, keep in mind that all the Bitcoins will be mined only 100 years from now, so thing will probably change a bit by then :)
In any case this article gives a detailed explanation about this scenario so you can find some more information about it.
Hope this helped!