added OnRelease event to ResourcePool