when you are going to shut down the aircraft, be sure you let a minute pass after turning the apu off before disconnecting the main battery so the inlets can close back there.
you let the apu run, if required, while re-fueling.
after start during taxi once clear of obstacles you shut down the apu. it has been taking a breather ( no loads at all ) is stabilized and appreciates special care.