Refactored closed-all.