You can change the end time of your booking before it has started by clicking on the end time in the app or mobile website, and selecting the time you want to change it to.
Do you have a Plus or Pro subscription? In that case, the trip is automatically curtailed by up to two hours when you end it.