Or if you are worried about such scenario happening to the exchange you are using, better use binance as they have insurance for their traders. So even if they are hacked or something, you know, you can still get your coins. Because no one here can tell you which exchange is next. Because even these top exchanges are vulnerable to those attacks. Hackers are getting a hold of more sophisticated softwares nowadays, so it is not surprising if one day, one of them will be hacked.
The thing is how huge the damage taken and how big the insurance policy can cover. Sure thing binance insurance can cover certain hacked amounts but not all of them and they can't do it every time there's a hacked incident.
It's much better to what I've mentioned, but whatever it says the user has the last decision. Before sending funds to an exchange make sure you know the risks and do risk management in case of emergency.