Part of parenting is foreseeing this when the decision is made. Obviously it depends on the age of the child, and other factors.
Our kids are long moved out. But my wife and I used this as an opportunity for even more learning. We used to draft agreements with the child. Which in and of itself...