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

(cherry picked from commit b57e941f6f24643a9b752ff2a48e8b567c41449d)