If confidence could be maintained (in this case, in the stability of the exchange rate), then the withdrawal of funds will not occur. If confidence weakens, the process is self-reinforcing. This self-reinforcing instability cannot be easily removed. Some have suggested hedging as the answer. There is, first, the question of whether the country as a whole can hedge its foreign exchange risk.
While an individual can shift the risk to another party, a country in aggregate can only hedge its risk if it can persuade foreigners to take on the foreign exchange risk - in effect, lend in the domestic currency.