Sometimes people say inappropriately personal things in contexts in which it would be considered rude to say something along the lines of “Please stop talking about that”.
In those contexts, saying “thank you for your suggestion”, can sometimes work effectively to close a conversation without having to engage with the content of the inappropriate advice.