Whenever the court vacates or sets aside a judgment of foreclosure with respect to any particular property, the court shall determine the value of any improvements placed on the property by the county or by any purchaser from the county, and shall give judgment therefor and collect the same from the claimant before putting the claimant in possession.
ORS 312.240