We analyze a portfolio optimization problem for a long-term investor in the presence of stock market crises. A crisis includes a crash of the stock market price, a sharp increase of its volatility and dramatic deterioration of liquidity. We model the stock market illiquidity by means of convex...