In business and investing, quitting can spell opportunity