should not access scope after releasing memory pool