Whether you are keeping your business in the family or selling it on, these strategies can help