close pool asynchronously