If the motor supply is absent or inadequate the L293D internally routes current from the logic supply to
the power side of its circuitry. This is bad news and you should avoid this by ensuring the
motor supply is adequate for the load, and always connecting it first if possible.