BZ-1068500 - Use public api interface for TaskLifeCycleEventListener instead of internal

(cherry picked from commit 45f7250bc2624e453335ba47efe7f6d13600ee1f)