[Issue #2053] Fix KVO leak on invalidated session tasks