better exception handling and logging messages when battery info not
found.