For some they are a coping mechanism. Like any habit they become ingrained, more so if suicide gave you a warped comfort of, I will be dead tomorrow so nothing matters. I think the only way to beat it is to find comfort in something else and no longer need suicide as a means to cope with the uncertainty of life. I managed to gain my own solace through my personal philosophy. However it is unique to each individual what may work. ironically not being able to live upto to that philosophy is the core driver of my current suicidal thinking. I feel like I have gone full circle.