Fix resource pool release / discard to not waste cpu on generating benign error.