There are apps which can ALERT you to an upper or lower desired charging threshold (AccuBattery being among the good ones), but I don't know of any that automatically end the charging event.