It depends on a lot of things and can vary from bank-to-bank, so you really have to check with your bank to know for sure.
But what you need to think about is that either person on a joint account has full control of the money in it. So one person CAN withdraw or spend all the money, even if they can't actually close the account.
If you're going through a divorce and the other person drains the account, you may be able to get some of that back as you go through the legal divorce processes. But if you have a joint account with someone you're not legally coupled, with you may be out of luck