My route ends without touching the Stop bottom

My Edge 530 finishes the route and asks me if I want to save it, without me having touched any button. The same functions appear that when I get home and stop the recording, but without me having touched the Stop button. Anyone else has happened?
I have activated automatic recording starting from 15 km/h. I use it for MTB.