Notwithstanding Section 23151, every corporation (except banks and financial corporations) not exempted from taxation by the provisions of the Constitution of this state or by this part which dissolves or withdraws, shall pay a tax for its taxable year of dissolution or withdrawal according to or measured by its net income for the taxable year in which it ceased doing business, unless that income has previously been included in the measure of tax for any taxable year, to be computed at the rate prescribed in Section 23151 for its taxable year of dissolution or withdrawal. In any event, the tax for the taxable year of its dissolution or withdrawal shall not be less than the minimum tax provided for in Section 23153 for that taxable year.