A residence which is determined to be nonconforming within the zoning district in which the residence is located may be continued and is exempted from the provisions of these sections.