sh: Delete unnecessary checks before the function call "mempool_destroy"