The abandoning spouse could lose custody of their child or have limits on their visitation privileges. To prevent this situation from taking place, there should be a child custody agreement in place ahead of time.