Knowing when to cut your losses in real estate