Crisis risk and stability in financial markets