healthy: add ReportFailure and WaitFailure

Summary:
1. ReportFailure simply sets a failed node under failedTasks/ dir.
2. WaitFailure waits for any node being created under the dir and reports the id.