Remove the battery when connected to the power supply