Remove only previously closed modals to allow modal nesting