The goal of bankruptcy should be a discharge, where the court forgives your debts, giving you a fresh start. A dismissal, on the other hand, occurs when something goes wrong with the case and the court is unable to finalize the bankruptcy claim.