Battery waste management