close sub-dirs even if assert fails