Fix resource pool release / discard to not waste cpu on generating benign error.
Merge pull request #94 from PatrickDropbox/master

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