Adding release event to soft reference classes

Adding release event to soft reference classes. close #4