Fix Bug in shutdown sequence

Bug could produce 5V at motor output during shutdown