Back out prepareForDealloc code. First attempt at loop aware release.
Remove scope release as in practice, the lambda is sufficient for most cases.
Merge pull request #4 from gamechanger/jh-loop-aware-release

Jh loop aware release