add failedtask handler
Merge branch 'reef-bridge' of https://github.com/Microsoft-CISL/REEF into reef-bridge