If the exchange is not safe to use, then it is not decentralized.
Decentralized exchange can not be unsafe. There you can simply have private keys for wallets and not worry about your coins.
How is the private key of the purses on the exchange? Does it happen? I did not even know about it ... Or did I misunderstand something?