The blackout Wednesday left thousands of people stranded on subways , shut down the stock market , and forced hospitals to switch to emergency power .