A company is terminated by the decision of its shareholders or forcibly dissolved by a court judgment. If a legal entity is unable to fulfil its obligations for a prolonged period or such inability is foreseeable in the future, it must file for bankruptcy in order to protect the interests of creditors.