Here's what you need to know if you're thinking about filing for bankruptcy.