Use closures for all task handlers

[#79618146]

Signed-off-by: Max Brunsfeld <mbrunsfeld@pivotal.io>