You can also see if there is a crisis line or hotline in your area. That way you can talk to somebody that can help you with your thoughts. I also agree with having a therapist to work on why you're having them to begin with.
Best of luck and hang in there.