As for corporate bankruptcy, it is recognized that a poor legal system is one that keeps otherwise viable factories shuttered while assets are frittered away in expensive legal wrangling, leaving everyone – managers, workers, and shareholders – worse off. A good legal system permits employment and production to continue in cases where the economic activity is still viable; divides up the remaining assets in an orderly and generally accepted way; and makes these determinations as efficiently and speedily as possible, while discouraging future carelessness by imposing costs on managers, shareholders, and – if necessary – creditors.