Having said that, a month to live is still a month to live. Talk about the situation with your team members and advisors and try to figure out whether or not it's salvageable. Perhaps, after making some difficult choices, there's a way that you can still continue. There have been moments in my own startup experience where things seemed really bleak and hopeless, and it seemed time to give up, but in the end we actually got past it. Another friend of mine had a situation where he literally had no money left in the bank and took the company to Vegas on credit card (I don't advise this!), when someone threw him a $200k life preserver at the 11th hour.
I guess the question you really have to ask yourself is whether you still believe in what you're doing. If the answer is no, then I think your involvement with the company has to end, which may or may not be fatal for the startup overall. I feel for you OP - my own startup failed 18 months ago and it's no fun. However, you'll get through it and I hope you decide to try again.