Early contract termination charges are not deductible for tax purposes
Efforts to mitigate further losses cannot be treated as preservation of a source of income. If you choose to enter into a fixed term contract, you have to take the business risk. Courts rule otherwise and consistently side with taxpayers.
For more on this, see here.