A company is brought to an end by winding-up, which may be done by the Court, or voluntarily, or subject to the supervision of the Court. Under all three modes a person is appointed liquidator, [...] and, if there be any surplus to divide it among the members.