Improve auto pool destruction logic