The taking over company inherits the debt, notes etc. The share holders have a cap gain or loss. It is not a wind up - talking about a takeover.