Removed freeing of leaved scope
Added closure sample