On the subject of batteries - temperature. Batteries hate the cold.
Some primary cells will seem to have run out completely in the cold even though they are relatively new, let them warm up and they still have all their life remaining. Although I knew this in theory I first discovered it in practice years ago trying to take astrophotographs on a cold, clear winters night. I left camera and lens to cool down to ambient to avoid heat haze appearing in the photographs from warm air coming off the lens. My [film] camera died completely despite having a set of batteries in it that were probably good for another year of almost daily use, just because the silver oxide battery got freezing cold.
Secondary cells - don't try to charge them when they are cold. They will accept much less charge when cold than when at room temperature. If you're using a cordless drill or similar out in the cold and the battery dies don't take it indoors and immediately charge it. Let it get up to room temperature first, then charge it. Especially applies to battery packs with a permanent low capacity lockout - like Makita ones, where if the battery fails to accept 'sufficient' charge three times the battery management chip permanently marks the battery 'bad' and disables it.