@Mairtín *************
entirely up to the bank.
If you appear like a tourist, they will likely want to close it, if you seem established, have a lot in the bank, own a condo, maybe married or even long term partner.. They will often allow it to remain.
There is no law, only bank discretion.