Is it wrong to end your life even though it will hurt those who somehow happen to value you?
Yes, and this is actually a good motivation to get through particularly tough periods in life. It's still your life at the end of the day, but if you care for those people you won't want to cause them suffering. Beyond that, it would be unfortunate to end any potential in the spark of life one has been given (or taken, if you prefer).