Go To The Wall Meaning

(idiomatic) To fail, to run out of options. (especially of a business)

Example:   He'll be the one who goes to the wall when it's needed.
  He's always been willing to go to the wall for his friends.
  That was the one point he was willing to go to the wall on.
2012, The Economist, Oct 13th 2012, Iran and its currency crisis: A comeback for the reformers?
  That may be cold comfort for the many import-reliant businesses that have gone to the wall as a result of the rial’s recent plunge of 40% against the dollar [...]
To be put aside or forgotten.
To take an extreme and determined position or measure