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

(cherry picked from commit 70ac43b5afb5c9348b43652a69b21ade4bc22078)