What happen if a project is Shariah compliant during the time of investment, but after the exit it becomes Shariah non-compliant?

Upon exit, the investor has no affiliation or ownership of the project. Shariah compliance becomes the responsibility of the project owner.