First, make sure you are trying to park inside the operating area. Remember that is not allowed to park outside the orange boundary (service area) or over orange zones.
Also, you need to have your GPS and data mobile on (wifi needs to be off).
If you still can't end the rental of the bike, contact the provider immediately, so they can manually close it for you.
Write them a request indicating your account phone number, the ID of the booking, the minutes you rode and the time you started/finished the rental.