On the maguro device, we don't have the same /sys/class/power_supply/battery/charging_source file, so opening it fails. Then we crash trying to close a null FILE*. Simple fix, "real" fix to read the right file coming up later.
Created attachment 583089 [details] [diff] [review] Don't try to fclose() NULL FILE*'s. I'm happy to land this after the uplift. Would prefer to not lose more blame history.