What you need to know before you sell your firm