When charging, the charger should be connected to the battery first, and then connect the charger to the mains.
Upon completion or on any other occasion, the charger should be disconnected from the mains first, and then disconnect the battery from the charger.
In the first case, with a...