A trip is automatically ended when your vehicle has been stationary for some time (around 4 minutes). The trip will then show up in your Trip Log, however it might take some time to load, so check your driver app a few minutes after you stop driving.