I still have ESPP shares in a company I used to work for. This company is getting bought out (deal has been publicly announced and should close soon). Many of these shares have greatly increased in value since I bought them. The most recent purchase was in 2010 so they're all long-term. I believe the deal is for all cash, no shares of the purchasing company.
When the deal closes, will it be as if I sold all of my ESPP shares with regards to taxes? Is there any way to mitigate this?