Is there a tasteful way to say, "Once your relationship ends, text me and we'll hang out"

You need to keep at least some level of contact with them.