Results of poor risk management. Don't expose all your margin account on a single asset. Don't increase your leverage without adapting at least your stoploss. This can be avoided.