i disconnect, or flip the switch, one or the other. (mostly d/c)
my switch is under my rack so its nicely hidden.
never leave power on.
i don't leave the batteries on the bike @ work either - they're brought inside to charge.
My habit is -
get off the bike.
disconnect power to the controller.
(so i don't try and charge while its connected)