Use correct api to get context manager from pool