fix: remove plugin directory handle without fail handles greater than the removed one.