Just that, really.
If you don't want any contact with a person for whatever reason, have the guts to say so. It is far kinder than making the other person wonder what on Earth has happened, have them worry about you/ their last interactions with you.
Ghosting is a coward's way out.