I'll be real, if you have people to surround yourself with that love you- please do not take their love for granted. I know feelings of CTB are hard, but at the very least please leave them some final, positive words to look back on and give them something good to remember you by. I imagine their grief will be immense, and you cannot stop them from caring for you, and from loving you.
Honestly, depression kind of does the pushing away part for you. You become pretty self isolated and trapped in your own world. If you are at a point of CTB, most people would've become fairly recluse and caved in already. If you're showing signs of social withdrawal and distance, doing that over a prolonged period of time usually pushes people away. They don't really consider the reasons why, and just assume you need space (even though it's likely the opposite in most cases).
For those absolutely closest like family- they will be faced with your death the most significantly. And that is just the reality of it. There is nothing you can do but leave them words of encouragement and love. They will inevitably be hurt, but you will be free. It's your choice at the end of the day.
<3