Turns out checking the battery state every minute is a bad idea