The comment above is absolutely correct. Centralized exchanges spend very little attention on security and a lot of attention on making big profits. I am sure that this is not the last major and successful hacker attack on the stock exchange (there are thoughts that Cryptopia itself arranged this attack in order to get the money of its clients).
Do not keep your money on the exchanges!