Automatic stop of a charging process