
In many cases, your better option is to keep renting your townhouse --- and doing whatever it takes to find a tenant --- rather than trying to cut your losses via a sale.
In the example above, you could go for years with reduced ($750/m) rent with annual losses of $1800 before you came anywhere close to realizing the full amount of loss realized by a quick sale on day 1.