And if a mortgage denominated in foreign currency is paid-off upon closing for instance you have a potentially large non-capital gain/loss. (this applies to all transactions in non-US currency, but on a large mortgage pay-off the numbers can be significant)