Gave TaskProcessor the ability to handle AppEvents.