the property you intend to buy, either it is not up to code, or not fit in the lending guild line, thus your lender needs you bring it to minimum living standard before they can lend you the money, most of the time, there is nothing your lender can do, because it is a Fanni Mei thing...
things like leaking toilet, no stove, no frig, can cause the closing to be delayed..99% of the time, seller could careless, since it is already foreclosed..
if you want to continue the project, hire someone temporally fix the problem, then do the closing, or if you want to walk, have your lender issue a letter, on disqualify of the mortgage, so you can walk free..