Assuming you sell soon, it likely doesn't really matter. I'd be inclined to hang onto the cash until your actual closing. That way you'll have it in case any other kind of emergency pops up, you can make a couple of extra dollars in interest, and you'll know exactly how much to bring once you're actually ready for settlement.
Good for you for dumping the losing property and not hanging onto it for emotional reasons or in vain hope it will recover somehow.
If you haven't already investigated it, and assuming you have a mortgage lender, I'd highly suggest looking into a short sale. The bank may be willing to eat some of those losses rather than have you walk away from the property. I realize you're not considering walking away from it, but they don't know that.