The Stock Market, the Real Economy and Contagion