As someone who often contemplated doing so for years, I can promise you that it is not your fault and there's little to nothing you could have done. I remember feeling sad and angry and isolated, even though looking back I was surrounded by people who were trying to help me. But now you know. So be gentle at first when she is released. But at some point you need to speak honestly that what she almost did hurt you and scared you and that it isn't okay to bail on you and everyone else. I have a friend who was hospitalized probably five times after suicide attempts and after a fairly extensive talk along those lines it has been over a year since she has come close. But as far as getting over your feeling, there is no simple way. In my opinion the best way is to get her back on her feet.