About 17 years ago, I thought about this; probably romantic rejection or low self-esteem were the cause of imagining a "magic switch" that would put an end to it, and therefore to my life. About 9 years ago, I remember thinking about it again. Even while lying in bed, I thought, "I wish I could just push a button and end it all." I even looked for information about it! I thought it was symbolic or something interpretive. I found a post by a guy who thought exactly the same thing, talking about his job, his lack of friends, his tiredness of life, his lack of relationships, living only with his mother and feeling alone.
Today, looking at this post, it reminds me that my experience isn't a passing sadness, it's not a "everything will be better" or a "with professional help you'll be fine" situation. This has been my life for a long time, and that button is my longing...