how to cope with losing custody of a child