The payment of principal is never a deductible expense. However, check the payoff information to see whether there were any fees paid in addition to principal; the fees may be considered a selling expense.
Taking an offsetting investment position to reduce the risk of loss in a similar investment.