Some times no matter what you do, an idea won't pan out. Before you find yourself in this situation you should come up with an exit plan.
What is an exit plan you may ask?
An properly created exit plan will allow you to avoid bankruptcy and embarrassment if your company fails. This is not something you can leave until the last minute. If nothing you do turns the burgeoning company around in a few months, then you should utilize this.
Some things to consider include:
1) Paying creditors, including hosts, ISP's and product suppliers.
2) Helping any employees you have find new jobs.
3) Liquidating Hard Assets.
4) Liquidating Soft Assets.
If you want to do business with your creditors in the future you need to make sure they are paid in full. This should happen first. You can raise cash for these from your assets. RIght now this should be your foremost concern.
If you have employees you should help them find jobs. This can be accomplished for free simple by calling various employment agencies around town and having them send a representative over. This will promote good will and you never know when or if you will be working with them again.
This includes your tangible goods and most likely they have depreciated while you used them. Things in this category include computers, desks, chairs and so forth.
This is where you can make up your losses and pay off your creditors. Knowledge and Information doesn't depreciate much in this world and you can sell it to the highest bidder and your previous competitors. Things to consider are custom scripts, member lists and site content. Properly worked these can be profitable commodities. The touchy asset is your member list. This invokes thoughts of privacy invasion and other nightmares in your customers so think through this one carefully.