Added pruning to executor registry