"on power disconnection" (event) probably would've worked better than "when disconnected from power" (time period).