You don’t stop bank runs by closing the online portal, you shut and lock the doors to the bank itself.
You close the online portal when you’re worried about online attacks, which can happen when hackers have your financials in their hot little hands.