the most sensible order

do you get a contractor to come in & give repair estimates after the purchase agreement is accepted or after closing?

Either before or After agreement and Subject to the conditions listed on the agreement (before closing).

You dont want to close before finding out if you are getting a good investment.

My 2 cents.