I got around it by mounting a fuse block, that's powered with a relay from a light circuit that's only on when the motorcycle is turned on.
Everything that goes into the fuse block is off when the engine is off.
Everything that goes into the fuse block is off when the engine is off.