Planning for the end of a business relationship is just as important as planning for the beginning.