In those cases, it is like a betrayal. Catholicism used to be like that. Amish, LDS and Jehovah’s Witnesses may be same today.
In an odd way, you can leave the religion but not join another and you will be OK.
SLC: “You can leave the religion, but you can’t leave it alone!”