Capital Markets and the Instability of Open Economies