What happens when qualified replacement property goes into an estate?
To the extent the qualified replacement property has not been disposed of, there is a "step up" in basis, so heirs pay no capital gains tax (but estate taxes are due).
For more details, see Selling to an ESOP and Financing the Deal and the ESOP Pre-Feasibility Toolkit.
Link to this FAQ Topic: Tax Benefits to the Seller & Company