What is the meaning of [never speak of rope in the house of a man who has been hanged]

Be tactful and steer clear of sensitive subjects in the company of people who might be upset or offended by them