Pheonix charger remote switching with ignition

Firstly is it good practice not to have the pheonix charger on when the boat engines are running?

If that is the case i like to be able to use the remote function on the pheonix charger to switch off the charger when the ignition key is turned to start boat engine.

Whats the best way to do this?