Cleanup of battery segment